<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>常见工具方法</title>
</head>
<body>
<script>
  //base64->ascii
  console.log(window.atob('eyJhbGciOiJub25lIn0'));
  //ascii->base64
  console.log(window.btoa(window.atob('eyJhbGciOiJub25lIn0')));
</script>
</body>
</html>
